﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel.Activation;

namespace CalendarService.Service
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class Test1:ITest1
    {
        public string sayGoodbye(string p)
        {
            using (var context = new CalendarEntities())
            {
                var lang = new Language();
                lang.id = 1;
                lang.language = "VietNam";
                lang.description = "Description";
                context.Languages.AddObject(lang);
                context.SaveChanges();
                return "success";
            }
        }
    }
}